public class Circle extends Shapes {
    private double r;
    public Circle(){}
    public Circle(double r) {
        this.r = r;
    }

    public double getR() {
        return r;
    }

    public void setR(double r) {
        this.r = r;
    }
    public void area() {
        System.out.println("圆面积是"+(r*r*3.14));
    }
    public  void c(){
        System.out.println("圆周长是"+(r*2*3.14));
    }
}
